package com.kingdee.pda.plugins.http.serverinterface;

import android.content.Context;

import com.kingdee.pda.entity.Warehouse;
import com.kingdee.pda.plugins.http.common.OnRequestCallback;

import java.util.List;

/**
 * 仓库相关接口
 * Created by zhanlg
 * DATE 2021/5/24
 * TIME 14:59
 */
public interface IWarehouse {

    /**
     * 获取仓库列表
     * @param isInit 是否初始化请求
     */
    void queryWarehouseList(Context context,boolean isInit, OnRequestCallback<List<Warehouse>> callback);


    /**
     * 获取当前仓库
     */
    void queryCurrentWarehouse(OnRequestCallback<Warehouse> callback);


    /**
     * 设置选中仓库
     * @param warehouseId  选择仓库ID
     */
    void saveWarehouse(long warehouseId, OnRequestCallback<Warehouse> callback);

}
